package com.nfIt;

import com.nfIt.dao.BookDao;
import org.springframework.context.ApplicationContext;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;


/**
 * ClossName:App
 * Pakage:com.nfIt
 * Description
 *
 * @Author L
 * @Create 2024/4/30 22:05
 * @Version 2023.1.3
 */
public class App {
    public static void main(String[] args) {
//        ApplicationContext atc = new ClassPathXmlApplicationContext("applicationContext.xml");

        ApplicationContext atc = new FileSystemXmlApplicationContext("D:/idea-wenjian/maven-Spring-demo07/src/main/resources/applicationContext.xml");

        BookDao name = (BookDao) atc.getBean("name");

        name.say();
    }
}
